package com.jt.controller;

import com.jt.pojo.Cat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.lang.annotation.Retention;

/**
 * @author 张琪
 * @date 2020/11/24
 * @describe
 */
@Controller
public class TestController {

    @Autowired
    private Cat cat;

    @ResponseBody
    @RequestMapping("/hello")
    public String testHello(){
        System.out.println(cat);
        return "hello world!!!";
    }
}
